package com.easipass.unifiedconfig;

public class NotFoundException extends Exception {

	private static final long serialVersionUID = -197683268990359339L;
	
	public enum Part {DOMAIN, ACCOUNT, MODULE, PARAMETER, USER};
	protected Part part;
	public NotFoundException(Part part, UCI u) {
		super(part + " not found: "+ u.toString());
		this.part = part;
	}
	public NotFoundException(Part part, String name) {
		super(part + " not found: "+ name);
		this.part = part;
	}
	public NotFoundException(Part part, String name, Throwable cause) {
		super(part + " not found: "+ name, cause);
		this.part = part;
	}
}
